package com.zcyr.core.impl;

import com.zcyr.config.DatabaseEnvironmentPoolConfig;
import com.zcyr.core.AbstractDatabaseEnvironment;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnProperty(value = "tryme.databaseEnvironmentManager.enable_pool", havingValue = "true")
public class DatabaseEnvironmentPool extends GenericObjectPool<AbstractDatabaseEnvironment>{


    public DatabaseEnvironmentPool(PooledDatabaseEnvironmentFactory factory, DatabaseEnvironmentPoolConfig config) {
        super(factory, config);
    }


}
